package com.gitee.minimalismstyle.fresh.common.core.validate

class RequiredValueValidate : ValueValidate {

    override fun check(value: Any?, params: String?): ValidateResult {
        return if(value == null || value.equals("")){
            ValidateResult(false, "不能为空")
        } else {
            ValidateResult(true)
        }
    }
}